<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/2/25
 * Time: 15:25
 */

namespace HiCommon\Model;


class Gift extends  Base
{

    protected $table = 'gifts';

    protected $guarded = [];


    public function extend(){
        return $this->hasMany(GiftExtend::class,'gift_id')->select('gift_id','type_coupon','type_shop','coupon_id','number','validity_at');
    }



}